package com.cskaoyan.service;


import com.cskaoyan.bean.stat.row.GoodsRows;
import com.cskaoyan.bean.stat.row.OrderRows;
import com.cskaoyan.bean.stat.row.UserRows;
import com.cskaoyan.mapper.StatUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;
import java.util.List;

@Service
public class StatServiceImpl implements StatService{

    @Autowired
    StatUserMapper statUserMapper;

    @Override
    public List<UserRows> statUser() {

         List<UserRows> data = statUserMapper.statUser();

        return data;
    }

    @Override
    public List<OrderRows> statOrder() {
        List<OrderRows> data = statUserMapper.statOrder();
        return data;
    }

    @Override
    public List<GoodsRows> statGoods() {
        List<GoodsRows> data = statUserMapper.statGoods();
        return data;
    }
}
